home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
NTXKEY.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
976b
|
41 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_NtxKey(cFileName, lNtx) --> cIndexExpression
PARAMETERS:
cFileName : Clipper NTX file from which to derive key expression
lNtx : TRUE = Clipper NTX (DEFAULT) FALSE = dBASE NDX
SHORT:
Extract the index key expression from an index file (without db/ntx open).
DESCRIPTION:
_NtxKey() returns the Index Key expression of the specified .NTX file.
If the file does not exist, a NUL (ie, empty()) string is returned.
NOTE:
EXAMPLE:
t = _NtxKey('KLIPPER.NTX') // indexed on FNAME+LNAME
Result: t = 'FNAME+LNAME'
#define NDX .F.
t = _NtxKey('KLIPPER.NDX',NDX) // indexed on NAME+STR(ACCOUNT)
Result: t = 'NAME+STR(ACCOUNT)'
******************************************************************************/